package me.hys.chat.comm;

/**
 * Author: @author HYS . <br>
 * Date: 2015-10-6 上午10:31:25 . <br>
 * Function:
 */
public class ChatException extends Exception {
	/**
	 * @Fields : TODO
	 */
	private static final long serialVersionUID = 1L;

	private int code;
	private String msg;

	public ChatException(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	@Override
	public String getMessage() {
		return msg;
	}

	public String getMsg() {
		return msg;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
